package com.springboot2.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private String phone;
    private String avatar;
    private String role;
    @TableField(exist = false)
    private List<Menu> menus;
    @TableField(exist = false)
    private List<Resource> permission;
    @TableField(exist = false)
    private String token;
}
